userdel -r elastic
useradd -d /home/elastic -m elastic

chown -R elastic:elastic elasticsearch-8.14.1

dir=`pwd`

su - elastic -c $dir/elasticsearch-8.14.1/bin/elasticsearch
